<?php
class Application_Form_Message extends Zend_Form
{
	public function __construct($options = null)
	{
		parent::__construct($options);
		$this->setName('Message');


		
		$message = new Zend_Form_Element_Textarea('message');
		$message->setLabel('Message:');
		$message->addFilter('StripTags');
		$message->setAttrib('rows', 3);
		$message->setRequired(true);
		$message->setValidators(array('NotEmpty'));
		
		$submit = new Zend_Form_Element_Submit('submit');
		$submit->setAttrib('id', 'submitbutton')
		->setLabel('Send');
		
		$elements = array( $message, $submit );
		$this->addElements($elements);
		
		
		
		
		$this->setDecorators( array( array('ViewScript', array('viewScript' => 'forms/message.phtml'))));



	}
}